package com.tech.repository.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 管理员实体类
 * <p>
 * 当前所有属性和 User 是一样的
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Admin implements Serializable {
	private Integer aid;
	private String aname;
	private char[] apassword;
	private String aemail;

	public Admin(Integer aid) {
		this.aid = aid;
	}

	public Admin(Integer aid, String aname, String aemail) {
		this(aid, aname, null, aemail);
	}

	public Admin(String aname, char[] apassword) {
		this(null, aname, apassword, null);
	}
}
